home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.ivb.jface.vajava;
-
- import com.ibm.ivb.jface.parts.StatusLabel;
- import com.ibm.ivb.jface.plaf.StatusLabelUI;
- import javax.swing.JComponent;
- import javax.swing.border.Border;
- import javax.swing.border.EmptyBorder;
- import javax.swing.plaf.ComponentUI;
-
- public class VAJavaStatusLabelUI extends StatusLabelUI {
- private static final String kCBIBMCopyright = "(c) Copyright IBM Corporation 1998";
- protected static VAJavaStatusLabelUI labelUI;
- protected static Border border;
-
- public static ComponentUI createUI(JComponent var0) {
- if (labelUI == null) {
- labelUI = new VAJavaStatusLabelUI();
- border = new EmptyBorder(0, 5, 0, 5);
- }
-
- return labelUI;
- }
-
- public void installUI(JComponent var1) {
- super.installUI(var1);
- StatusLabel var2 = (StatusLabel)var1;
- ((JComponent)var2).setBorder(border);
- }
-
- public void uninstallUI(JComponent var1) {
- super.uninstallUI(var1);
- if (var1.getBorder() == border) {
- var1.setBorder((Border)null);
- }
-
- }
- }
-